const Router = require('koa-router')

const itemRouter = new Router({prefix:'/item'})

const { list,recordList,byCategoryList } = require('../controller/item.controller')


// 根据仓库和类别查询剩余的物品
itemRouter.get('/stash/category',list)
// 查询所有入库和出库记录
itemRouter.get('/record',recordList)

// 查询近七天的数据
itemRouter.get("/bycategory",byCategoryList)


module.exports = itemRouter